using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DevExpress.ExpressApp.DC;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Xpo;
using DevExpress.Persistent.Validation;
namespace Ascent.QiPei.Module.BusinessObjects.Finance
{
  public partial class AccountPayableItems : DevExpress.Persistent.BaseImpl.BaseObject
  {
    private System.String _associationNubmers;
    private Ascent.QiPei.Module.BusinessObjects.Finance.AccountPayable _accountPayable;
    private Ascent.QiPei.Module.BusinessObjects.Enums.ModeOfPaymentType _modeOfPayment;
    private System.String _remark;
    private System.String _payableNumber;
    private System.String _summary;
    private System.Single _currentAmount;
    private System.DateTime _payableDate;
    public AccountPayableItems(DevExpress.Xpo.Session session)
      : base(session)
    {
    }
    [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("付款日期")]
    [RuleRequiredField(DefaultContexts.Save)]
    public System.DateTime PayableDate
    {
      get
      {
        return _payableDate;
      }
      set
      {
        SetPropertyValue("PayableDate", ref _payableDate, value);
      }
    }
    [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("支付方式")]
    [RuleRequiredField(DefaultContexts.Save)]
    public Ascent.QiPei.Module.BusinessObjects.Enums.ModeOfPaymentType ModeOfPayment
    {
      get
      {
        return _modeOfPayment;
      }
      set
      {
        SetPropertyValue("ModeOfPayment", ref _modeOfPayment, value);
      }
    }
    [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("付款金额")]
    [RuleRequiredField(DefaultContexts.Save)]
    public System.Single CurrentAmount
    {
      get
      {
        return _currentAmount;
      }
      set
      {
        SetPropertyValue("CurrentAmount", ref _currentAmount, value);
      }
    }
    [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("摘要")]
    public System.String Summary
    {
      get
      {
        return _summary;
      }
      set
      {
        SetPropertyValue("Summary", ref _summary, value);
      }
    }
    [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("发票/收据号")]
    public System.String PayableNumber
    {
      get
      {
        return _payableNumber;
      }
      set
      {
        SetPropertyValue("PayableNumber", ref _payableNumber, value);
      }
    }
    [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("关联单号")]
    public System.String AssociationNubmers
    {
      get
      {
        return _associationNubmers;
      }
      set
      {
        SetPropertyValue("AssociationNubmers", ref _associationNubmers, value);
      }
    }
    [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("备注")]
    public System.String Remark
    {
      get
      {
        return _remark;
      }
      set
      {
        SetPropertyValue("Remark", ref _remark, value);
      }
    }
    [DevExpress.Xpo.AssociationAttribute("AccountPayableItemses-AccountPayable")]
    [System.ComponentModel.BrowsableAttribute(false)]
    public Ascent.QiPei.Module.BusinessObjects.Finance.AccountPayable AccountPayable
    {
      get
      {
        return _accountPayable;
      }
      set
      {
        SetPropertyValue("AccountPayable", ref _accountPayable, value);
      }
    }
  }
}
